//
//  WBStatusToolBar.swift
//  WeiBoApp
//
//  Created by James on 2017/7/19.
//  Copyright © 2017年 James. All rights reserved.
//

import UIKit

class WBStatusToolBar: UIView {
    
    var viewModel:WBStatusViewModel?{
        didSet{
            retweetedButton.setTitle("\(viewModel?.status.reposts_count ?? 0)", for: [])
            likeButton.setTitle("\(viewModel?.status.attitudes_count ?? 0)", for: [])
            commentButton.setTitle("\(viewModel?.status.comments_count ?? 0)", for: [])
        }
    }
    
    /// 转发
    @IBOutlet weak var retweetedButton: UIButton!
    
    /// 评论
    @IBOutlet weak var commentButton: UIButton!
    
    /// 点赞
    @IBOutlet weak var likeButton: UIButton!
    

}
